package com.liu.proxy.core.handler;

import com.liu.proxy.core.parameter.ParameterMapping;

import java.util.ArrayList;
import java.util.List;

public class ParameterMappingTokenHandler  implements TokenHandler {

    private final List<ParameterMapping> parameterMappings = new ArrayList<ParameterMapping>();


    public List<ParameterMapping> getParameterMappings() {
      return parameterMappings;
    }

    @Override
    public String handleToken(String content) {
      parameterMappings.add(new ParameterMapping(content));
      return "?";
    }

  }
